import Layout from '@/page/index/'

export default [

  {
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [
      {
        path: 'index',
        name: '首页',
        meta: {
          i18n: 'dashboard'
        },
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/wel/index')
      }, {
        path: 'dashboard',
        name: '控制台',
        meta: {
          i18n: 'dashboard',
          menu: false,
        },
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
      }]
  },
  {
    path: '/feetMerTempalet',
    component: Layout,
    redirect: '/feetMerTempalet',
    children: [
      {
        path: '/rb-merchant/feetMer/payment/feetMerTempalet',
        name: '内容设计',
        component: () =>
          import('@/views/rb-merchant/feetMer/component/feetMerTempalet')
      },
      {
        path: '/rb-merchant/feetMer/payment/feet_user_trade',
        name: '缴费记录',
        // meta: {
        //   keepAlive: true
        // },
        component: () =>
          import('@/views/rb-merchant/feetMer/feet_user_trade')
      }
    ]
  },
  {
    path: '/pos_group_details',
    component: Layout,
    redirect: '/pos_group_details',
    children: [{
      path: '/rb-merchant/posgroup/pos_group_details',
      name: '集团商户详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posgroup/pos_group_details')
    }]
  }, {
    path: '/test',
    component: Layout,
    redirect: '/test/index',
    children: [{
      path: 'index',
      name: '测试页',
      meta: {
        i18n: 'test'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/test')
    }]
  }, {
    path: '/dict-horizontal',
    component: Layout,
    redirect: '/dict-horizontal/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {
        i18n: 'dict'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
    }]
  }, {
    path: '/dict-vertical',
    component: Layout,
    redirect: '/dict-vertical/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {
        i18n: 'dict'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
    }]
  }, {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
      path: 'index',
      name: '个人信息',
      meta: {
        i18n: 'info'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
    }]
  }, {
    path: '/work/process/leave',
    component: Layout,
    redirect: '/work/process/leave/form',
    children: [{
      path: 'form/:processDefinitionId',
      name: '请假流程',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
    }, {
      path: 'handle/:taskId/:processInstanceId/:businessId',
      name: '处理请假流程',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
    }, {
      path: 'detail/:processInstanceId/:businessId',
      name: '请假流程详情',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
    }]
  },
  {
    path: '/pos_info_details',
    component: Layout,
    redirect: '/pos_info_details',
    children: [{
      path: '/rb-merchant/posinfo/pos_info_details',
      name: '商户详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_details')
    }, {
      path: '/rb-merchant/posinfo/pos_info_images_preview',
      name: '资质证件照预览',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/pos_info_images_preview')
    },
    {
      path: '/rb-merchant/posinfo/pos_info_images',
      name: '资质证件照补充',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/pos_info_images')
    }]
  },
  {
    path: '/rpi_member_details',
    component: Layout,
    redirect: '/rpi_member_details',
    children: [{
      path: '/rb-merchant/rpiMemberOem/rpi_member_details',
      name: '商户会员详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-merchant/rpiMemberOem/rpiMemberOemListDetails')
    }]
  }, {
    path: '/deal_management_details',
    component: Layout,
    redirect: '/dealManagement/deal_management_details',
    children: [
      {
        path: 'deal_management_details',
        name: '交易详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-merchant/dealManagement/deal_management_details')
      },
      {
        path: '/rb-merchant/posinfo/pos_info_store',
        name: '门店管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/pos_info_store')
      },
      {
        path: '/rb-merchant/posinfo/pos_info_store_details',
        name: '管理门店',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/pos_info_store_details')
      },
      {
        path: '/rb-merchant/posinfo/pos_info_cashier',
        name: '收银员管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/pos_info_cashier')
      },
      {
        path: '/rb-merchant/posinfo/pos_info_terminal_bind',
        name: '终端管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/pos_info_terminal_bind')
      },
      {
        path: '/rb-merchant/posinfo/pos_info_equipment',
        name: '设备管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/pos_info_equipment')
      },
      {
        path: '/rb-merchant/posinfo/terminal/store/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/store/sound')
      },
      {
        path: '/rb-merchant/posinfo/terminal/store/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/store/printer')
      },
      {
        path: '/rb-merchant/posinfo/terminal/cashier/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/cashier/sound')
      },
      {
        path: '/rb-merchant/posinfo/terminal/cashier/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/cashier/printer')
      },
      {
        path: '/rb-merchant/posinfo/terminal/taika/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/taika/sound')
      },
      {
        path: '/rb-merchant/posinfo/terminal/taika/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-merchant/posinfo/pos_info_menu/taika/printer')
      },
    ]
  }
]
